//
//  Particle.h
//  Void Dead
//
//  Created by Sidney Just on 12.09.09.
//  Copyright 2009 Sidney Just
//  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; 
//  either version 3 of the License, or (at your option) any later version.
//  
//  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
//  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
//  

#import <Foundation/Foundation.h>

@class VD_Panel;
@class VD_Engine;

@interface VD_Particle : NSObject {
	float pos_x;
	float pos_y;
	
	float gain_X;
	float gain_Y;
	
	float randomX;
	float randomY;
	
	VD_Panel *panel;
	
	float lifespan;
	
	float tPos_x;
	float tPos_y;
	
	float gravityX;
	float gravityY;
	
	float currForceX;
	float currForceY;
	
	float gainSize_x;
	float gainSize_y;
	
	VD_Engine *ccEngine;
	
	int identifier;
}

@property (nonatomic, retain) VD_Panel *panel;

@property float gainSize_x;
@property float gainSize_y;

@property float gain_X;
@property float gain_Y;

@property float pos_x;
@property float pos_y;

@property float gravityX;
@property float gravityY;

@property float lifespan;

@property float randomX;
@property float randomY;

- (id)initWithEngine:(VD_Engine *)engine andLayer:(int)layer andTexture:(int)texture;
- (void)updateMe;
- (void)setDirection;

@end
